package com.aaa.fees.controller.api;

import com.aaa.entity.CareHistory;
import com.aaa.fees.service.BBackfeeService;
import com.aaa.fees.vo.PostObjVo;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("fees/api/back")
public class ApiBBackfeeController {
    @Autowired
    private BBackfeeService bBackfeeService;
    // 挂号单 查  具体信息  和 退费页面
    @GetMapping("/getId/{regId}")
    public Result<Map<String, Object>> getbackCharge(@PathVariable String regId){
        return bBackfeeService.getBackRegId(regId);
    }
    //现金退费
    @PostMapping("createOrderChargeWithCash")
    public Result createOrderChargeWithCash(@RequestBody PostObjVo postObjVo){
        return bBackfeeService.createOrderChargeWithCash(postObjVo);
    }
}
